import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.nio.channels.WritableByteChannel;

public class Demo13 {
    public static void main(String[] args) throws IOException {
        try(Writer writer = new FileWriter("./text")){
            writer.write("你好世界");
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
